﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
//using U8Login; 
using DevExpress.UserSkins;
using DevExpress.Skins;
using DevExpress.LookAndFeel;
using System.Runtime.Remoting.Channels.Tcp;
using System.Runtime.Remoting.Channels;


namespace AnLianSysClient
{
    static class Program
    {

        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]

      

        static void Main()
        {   //Office 2013 Light Gray;  Office 2010 Black; DevExpress Dark Style
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            BonusSkins.Register();
            SkinManager.EnableFormSkins();
            DevExpress.LookAndFeel.UserLookAndFeel.Default.SetSkinStyle("Office 2010 Black");
            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            try
            {
                
                //if (Common.LoginU8())
                //{
                    //注册通道
                    TcpClientChannel channel = new TcpClientChannel();
                    ChannelServices.RegisterChannel(channel, false);


                    Application.Run(new MainFrm());
                // }
                //else {
                    Application.Exit();
                //}
            }
            catch(Exception e) {
                MessageBox.Show(e.Message);
            }
            
        }
    }
}
